package com.tanhua.common.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
//todo 貌似没有用上
public enum FreezingTimeEnum implements IEnum<Integer> {
    //1为冻结3天，2为冻结7天，3为永久冻结
    ONE_DAY(1, "冻结3天"),
    SEVEN_DAYS(2, "冻结7天"),
    PERPETUAL(3, "永久冻结");

    private int value;
    private String desc;

    FreezingTimeEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public String getDesc() {
        return this.desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    @Override
    public String toString() {
        return this.desc;
    }
}
